package com.legleg.run.crawler.parser;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-12-29
 * Time: 下午3:00
 * To change this template use File | Settings | File Templates.
 */
public class ParserHandler {
    private static BaseParser twotwomm = new TwoTwoMMParser();
    private static BaseParser umei = new UMeiParser();

    public static BaseParser getParser(String feedurl){
        if(feedurl.contains("umei.cc"))
            return umei;
        else if(feedurl.contains("22mm.cc"))
            return twotwomm;
        return null;
    }
}
